Skip to content

Conversation

@davisriedel
Copy link

This PR adds drivers for the native Bun SQL (since version 1.2) and Bun SQLite bindings.

Because Bun SQL uses the API of postgres.js and Bun SQLite uses the API of better-sqlite3 the drivers proposed in this PR are derived from the existing postgres and better-sqlite3 drivers. The bun-sqlite driver was improved to not output as many any types.

@hughevans
Copy link

Nice one. Excited to get this in!

tylergannon added a commit to pagerguild/sqlc-gen-typescript that referenced this pull request Dec 17, 2025
This adds native Bun SQL support using Bun's built-in PostgreSQL API (since Bun 1.2).
No external npm dependencies required for PostgreSQL when using bun-sql driver.

Upstream PR: sqlc-dev/sqlc-gen-typescript#58
Author: davisriedel
tylergannon added a commit to pagerguild/sqlc-gen-typescript that referenced this pull request Dec 17, 2025
This adds native Bun SQL support using Bun's built-in PostgreSQL API (since Bun 1.2).
No external npm dependencies required for PostgreSQL when using bun-sql driver.

Upstream PR: sqlc-dev/sqlc-gen-typescript#58
Author: davisriedel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants